package com.grace.service.impl;

import com.grace.mapper.EmpMapper;
import com.grace.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    private EmpMapper empMapper;

    /**
     * 获得部门名字
     */
    @Override
    public List<String> getDeptName() {
        return empMapper.getDeptName();
    }

    /**
     * 获得部门人数
     */
    @Override
    public List<Integer> getDeptNum() {
        return empMapper.getDeptNum();
    }
}
